<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdminsTable extends Migration {
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up() {
        Schema::create('admins', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('login_name', 32);
            $table->string('true_name', 32)->nullable();
            $table->string('img_url', 255)->nullable();
            $table->string('password', 128);
            $table->string('phone', 11);
            $table->string('email', 64);
            $table->string('like',64)->nullable();
            $table->bigInteger('c_time')->unsigned();
        });

    }



    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down() {
        Schema::dropIfExists('admins');
    }
}
